Optimal. Leaf size=86 \[ \frac {\log (x) (A b e-2 A c d+b B d)}{b^3}-\frac {\log (b+c x) (A b e-2 A c d+b B d)}{b^3}+\frac {(b B-A c) (c d-b e)}{b^2 c (b+c x)}-\frac {A d}{b^2 x} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {771} \begin {gather*} \frac {(b B-A c) (c d-b e)}{b^2 c (b+c x)}+\frac {\log (x) (A b e-2 A c d+b B d)}{b^3}-\frac {\log (b+c x) (A b e-2 A c d+b B d)}{b^3}-\frac {A d}{b^2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 771
Rubi steps
\begin {align*} \int \frac {(A+B x) (d+e x)}{\left (b x+c x^2\right )^2} \, dx &=\int \left (\frac {A d}{b^2 x^2}+\frac {b B d-2 A c d+A b e}{b^3 x}+\frac {(b B-A c) (-c d+b e)}{b^2 (b+c x)^2}-\frac {c (b B d-2 A c d+A b e)}{b^3 (b+c x)}\right ) \, dx\\ &=-\frac {A d}{b^2 x}+\frac {(b B-A c) (c d-b e)}{b^2 c (b+c x)}+\frac {(b B d-2 A c d+A b e) \log (x)}{b^3}-\frac {(b B d-2 A c d+A b e) \log (b+c x)}{b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 80, normalized size = 0.93 \begin {gather*} -\frac {\frac {b (b B-A c) (b e-c d)}{c (b+c x)}-\log (x) (A b e-2 A c d+b B d)+\log (b+c x) (A b e-2 A c d+b B d)+\frac {A b d}{x}}{b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(A+B x) (d+e x)}{\left (b x+c x^2\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 184, normalized size = 2.14 \begin {gather*} -\frac {A b^{2} c d - {\left ({\left (B b^{2} c - 2 \, A b c^{2}\right )} d - {\left (B b^{3} - A b^{2} c\right )} e\right )} x + {\left ({\left (A b c^{2} e + {\left (B b c^{2} - 2 \, A c^{3}\right )} d\right )} x^{2} + {\left (A b^{2} c e + {\left (B b^{2} c - 2 \, A b c^{2}\right )} d\right )} x\right )} \log \left (c x + b\right ) - {\left ({\left (A b c^{2} e + {\left (B b c^{2} - 2 \, A c^{3}\right )} d\right )} x^{2} + {\left (A b^{2} c e + {\left (B b^{2} c - 2 \, A b c^{2}\right )} d\right )} x\right )} \log \relax (x)}{b^{3} c^{2} x^{2} + b^{4} c x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 112, normalized size = 1.30 \begin {gather*} \frac {{\left (B b d - 2 \, A c d + A b e\right )} \log \left ({\left | x \right |}\right )}{b^{3}} - \frac {{\left (B b c d - 2 \, A c^{2} d + A b c e\right )} \log \left ({\left | c x + b \right |}\right )}{b^{3} c} + \frac {B b c d x - 2 \, A c^{2} d x - B b^{2} x e + A b c x e - A b c d}{{\left (c x^{2} + b x\right )} b^{2} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 133, normalized size = 1.55 \begin {gather*} \frac {A e}{\left (c x +b \right ) b}-\frac {A c d}{\left (c x +b \right ) b^{2}}+\frac {A e \ln \relax (x )}{b^{2}}-\frac {A e \ln \left (c x +b \right )}{b^{2}}-\frac {2 A c d \ln \relax (x )}{b^{3}}+\frac {2 A c d \ln \left (c x +b \right )}{b^{3}}+\frac {B d}{\left (c x +b \right ) b}+\frac {B d \ln \relax (x )}{b^{2}}-\frac {B d \ln \left (c x +b \right )}{b^{2}}-\frac {B e}{\left (c x +b \right ) c}-\frac {A d}{b^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.47, size = 106, normalized size = 1.23 \begin {gather*} -\frac {A b c d - {\left ({\left (B b c - 2 \, A c^{2}\right )} d - {\left (B b^{2} - A b c\right )} e\right )} x}{b^{2} c^{2} x^{2} + b^{3} c x} - \frac {{\left (A b e + {\left (B b - 2 \, A c\right )} d\right )} \log \left (c x + b\right )}{b^{3}} + \frac {{\left (A b e + {\left (B b - 2 \, A c\right )} d\right )} \log \relax (x)}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.44, size = 117, normalized size = 1.36 \begin {gather*} -\frac {\frac {A\,d}{b}+\frac {x\,\left (2\,A\,c^2\,d+B\,b^2\,e-A\,b\,c\,e-B\,b\,c\,d\right )}{b^2\,c}}{c\,x^2+b\,x}-\frac {2\,\mathrm {atanh}\left (\frac {\left (b\,\left (A\,e+B\,d\right )-2\,A\,c\,d\right )\,\left (b+2\,c\,x\right )}{b\,\left (A\,b\,e-2\,A\,c\,d+B\,b\,d\right )}\right )\,\left (b\,\left (A\,e+B\,d\right )-2\,A\,c\,d\right )}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.22, size = 233, normalized size = 2.71 \begin {gather*} \frac {- A b c d + x \left (A b c e - 2 A c^{2} d - B b^{2} e + B b c d\right )}{b^{3} c x + b^{2} c^{2} x^{2}} + \frac {\left (A b e - 2 A c d + B b d\right ) \log {\left (x + \frac {A b^{2} e - 2 A b c d + B b^{2} d - b \left (A b e - 2 A c d + B b d\right )}{2 A b c e - 4 A c^{2} d + 2 B b c d} \right )}}{b^{3}} - \frac {\left (A b e - 2 A c d + B b d\right ) \log {\left (x + \frac {A b^{2} e - 2 A b c d + B b^{2} d + b \left (A b e - 2 A c d + B b d\right )}{2 A b c e - 4 A c^{2} d + 2 B b c d} \right )}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________